import api from '../utils/axios'
import qs from 'qs'


export default {


    /*  产品列表  */
    productList: function ({pageSize=1,pageNum=10}) {
       return api.post('/api/block/v/pruductList', {pageSize,pageNum}).then((resp) => {
         return Promise.resolve(resp.data)
       })
    },

      /*  根据ID查找产品  */
    findProduct: function ({id}) {
        return api.post('/api/block/v/findProduct', {id}).then((resp) => {
          return Promise.resolve(resp.data)
        })
      },

    /*  产品列表  */
    communityList: function ({pageSize=1,pageNum=4}) {
        return api.post('/api/article/articleList', {pageSize,pageNum}).then((resp) => {
           return Promise.resolve(resp.data)
        })
    }

}
